package com.gowants.pems.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gowants.pems.model.SysPower;

public interface SysPowerMapper {
	
	/**
	 * 查询
	 * @param record
	 * @return
	 */
	public List<SysPower> select(@Param("record")SysPower record);
	
	/**
	 * 查询
	 * @param record
	 * @return
	 */
	public List<SysPower> selectLogin(@Param("record")SysPower record);
	
	
	/**
	 * 查询
	 * @param record
	 * @return
	 */
	public List<SysPower> selectAdmin(@Param("record")SysPower record);
	
	
	/**
	 * 新增
	 * @param record
	 * @return
	 */
	public int save(@Param("record")SysPower record);
	
	/**
	 * 修改
	 * @param record
	 * @return
	 */
	public int update(@Param("record")SysPower record);
	
	/**
	 * 删除
	 * @param id
	 * @return
	 */
	public int delete(@Param("id")String id);
	
	
	/**
	 * 删除
	 * @param userId
	 * @return
	 */
	public int deleteByRoleId(@Param("roleId")String userId);
	/**
	 * 删除
	 * @param permissionId
	 * @return
	 */
	public int deleteBypermissionId(@Param("permissionId")String permissionId);
}
